import { GET } from '../../request';
import * as Types from '.';
import { Res } from '../../common';

/**
 * 获取搜索产品列表
 * @param params
 * @returns
 */
export const getSearchProductList = (
  params: Types.IGetSearchProductParams,
): Promise<Res<Types.IGetSearchProductRes>> => {
  return GET('/search/product', { ...params });
};

/**
 * 获取商品及分类
 */
export const getProductCateList = (params: any) => {
  return GET('/api/store_services_list', params);
};
